#!/usr/bin/env bash
cd /var/local

rm -rf  nginx
mkdir nginx
mkdir -p /var/local/nginx/{conf,html,logs}
touch /var/local/nginx/html/index.html
echo   "<html><body><h1> xxxxxxxxxxxxxe</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Wed Sep 09 15:07:28 CST 2020</div><div>There was an unexpected error (type=Not Found, status=404).</div><div>No message available</div></body></html>" >> /var/local/nginx/html/index.html
cd /var/local/nginx/conf
wget http://124.223.11.108:13000/demo2099/OneStepShell/raw/branch/master/nginx.conf
wget http://124.223.11.108:13000/demo2099/OneStepShell/raw/branch/master/subscribe.conf
docker rm -f mynginx
docker run  -d --restart=always --name mynginx  --network host -v /var/local/nginx/conf/nginx.conf:/etc/nginx/nginx.conf   -v /var/local/nginx/conf/subscribe.conf:/home/webhtml/subscribe.conf  -v /var/local/nginx/logs:/var/log/nginx  -v /var/local/web/love1:/usr/share/nginx/html nginx